package messages;

import java.math.BigInteger;
import java.security.PublicKey;

public class LoginMessage extends Message {

	private final String pwHash;
	private static final long serialVersionUID = 6108157876803021685L;
	private final BigInteger generator;
	private final BigInteger prime;
	private final int bit_size;
	private final PublicKey clientPubKey;

	public LoginMessage(String sender, long sessionID, String pwHash, 
			BigInteger g, BigInteger p, int size,
			PublicKey key){
		super(sender, sessionID);
		this.pwHash = pwHash;
		this.generator = g;
		this.prime = p;
		this.bit_size = size;
		this.clientPubKey = key;
	}
	
	public String getPwHash(){
		return this.pwHash;
	}

	public BigInteger getG() {
		return generator;
	}

	public BigInteger getP() {
		return prime;
	}

	public int getL() {
		return bit_size;
	}

	public PublicKey getClientPublicKey() {
		return clientPubKey;
	}
}
